/* Kernel for Addition of two vectors */
__kernel void vector_add_cpu (global const float* src_a,
                     global const float* src_b,
                     global float* res,
		   const int num)
{  
   const int id = get_global_id(0);
   if (id < num)
      res[id] = src_a[id] + src_b[id];
}